package com.gold.persist;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.gold.model.Customer;
import com.gold.util.Page;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer cId);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer cId);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    
    /*通过条件查询商品*/
    List<Customer> findByCondition(Page<Customer> page);

    /*通过条件查询商品数量*/
    int findCountByCondition(Page<Customer> page);
    
    @Select("select c_id cId, c_name cName, c_phone cPhone, c_address cAddress,c_type cType, c_createtime cCreatetime,c_memo cMemo from Customer")
	List<Customer> getAll();
}